package example.pattern.templatemethod;

/**
 * Method template
 * 
 * @author Administrator
 *
 */
public abstract class AbstractDisplay {
	
	public final void display() {
		printOpen();
		for (int i = 0; i < 5; i++) {
			printContent();
		}
		printClose();
	}
	
	protected abstract void printOpen();
	
	protected abstract void printContent();
	
	protected abstract void printClose();

}
